/*
 * ClkPro.cpp
 *
 * Created: 3/18/2013 11:22:57 PM
 *  Author: Ozan
 */ 

# define F_CPU 16000000L
#include <avr/io.h>
#include <util/delay.h>    // including the avr delay lib
#include "usart.h"			// Header for Serial communication
#include "outp.h"

//#include "stdint.h"
//#include "inttypes.h"


OUTP led1(0x05,5);			// Creates an object called led1 connected to PortB.5 (0x05 is the Special function register for PORTB)
OUTP trigPin(0x05,4);
OUTP led(0x05,3);
OUTP led2(0x05,2);

int main(void)
{
	// INITIALIZATIONS
	DDRB = 0b00111100;	//B5 output: board LED
	USART_Init(MYUBRR); // Initializes the serial communication
	// Go to USART.H AND CHANGE YOUR FOSC AND BAUD
	USART_Send_string("Clk-Pro\n");
    while(1)
    {
        //TODO:: Please write your application code 
		led1.on();
		USART_Send_string("System Scan\n");
		_delay_ms(1000);
		led1.off();
		_delay_ms(1000);		
    }
}